package com.bckj.fastboot.security.constant;

public class SecurityConstants {

    /**
     * 项目的license
     */
    public static String PROJECT_LICENSE = "https://fastboot.com";

    /**
     * 默认登录URL
     */
    public static String OAUTH_TOKEN_URL = "/oauth2/token";

    /**
     * grant_type 刷新token
     */
    public static String GRANT_TYPE_REFRESH_TOKEN = "refresh_token";

    /**
     * grant_type 密码
     */
    public static String GRANT_TYPE_PWD = "urn:ietf:params:oauth:grant-type:pwd";

    /**
     * grant_type 短信
     */
    public static String GRANT_TYPE_SMS = "urn:ietf:params:oauth:grant-type:sms";

    /**
     * {bcrypt} 加密的特征码
     */
    public static String BCRYPT = "{bcrypt}";

    /**
     * {noop} 加密的特征码
     */
    public static String NOOP = "{noop}";

    /***
     * 资源服务器默认bean名称
     */
    public static String RESOURCE_SERVER_CONFIGURER = "resourceServerConfigurerAdapter";

    /**
     * 用户名
     */
    public static String USERNAME = "username";

    /**
     * 用户信息
     */
    public static String DETAILS_USER = "user_info";

    /**
     * 用户ID
     */
    public static String DETAILS_USER_ID = "user_id";

    /**
     * 协议字段
     */
    public static String DETAILS_LICENSE = "license";

    /**
     * 验证码有效期,默认 60秒
     */
    public static long CODE_TIME = 60;

    /**
     * 验证码长度
     */
    public static String CODE_SIZE = "6";

    /**
     * 客户端模式
     */
    public static String CLIENT_CREDENTIALS = "client_credentials";

    /**
     * 客户端ID
     */
    public static String CLIENT_ID = "clientId";

    /**
     * 短信登录 参数名称手机号
     */
    public static String OAUTH_PARAMETER_NAME_SMS_PHONE = "phone";

    /**
     * 短信登录 参数名称验证码
     */
    public static String OAUTH_PARAMETER_NAME_SMS_VERIFICATION_CODE = "verification_code";

    /**
     * 授权码模式confirm
     */
    public static String CUSTOM_CONSENT_PAGE_URI = "/token/confirm_access";

}
